module.exports = app => {
    const { DATE, INTEGER,DECIMAL } = app.Sequelize;

    const Audit = app.model.define('t_audit', {
        id: { type: INTEGER, primaryKey: true, autoIncrement: true },
        agent_id: {type:DECIMAL(20),'allowNull': false},
        ad_id: {type:DECIMAL(20),'allowNull': false},
        createtime: {type:DATE,'allowNull': false},
        modifytime: {type:DATE,'allowNull': false},
        state: {type:DECIMAL(1),'allowNull': false},
    }, {
        timestamps: false,  //去除createAt updateAt
        freezeTableName: true,  //使用自定义表名
    })
    return Audit;
};